package com.yicong.ants.manager.holder;

import android.content.Context;
import android.widget.ImageView;

import com.cchao.simplelib.core.GlideApp;
import com.cchao.simplelib.core.UiHelper;
import com.yicong.ants.R;
import com.stay4it.banner.loader.ImageLoader;

public class GlideBannerLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        imageView.setPadding(UiHelper.dp2px(13), 0, UiHelper.dp2px(13), 0);

        GlideApp.with(imageView.getContext())
            .load(path)
            .transform(new GlideRoundTransform(10))
            .placeholder(R.drawable.tourism_banner_place2)
            .into(imageView);
    }
}
